/*
  z-index:
    role-list-wrap: 41
    mask-shadow：40
*/

@import './variables.scss';
@import './base-style.scss';

:root {
  --swiper-theme-color: $mainColor;
}
html {
  line-height: initial;
}

html,
body,
li,
ul,
ol,
a,
i,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
dd,
dl,
p,
b,
i {
  margin: 0;
  padding: 0;
  // list-style: none;
  outline: none;
}

span,
i {
  vertical-align: middle;
}

ul {
  list-style: none;
}

.a-label-warn,
.a-label-danger,
.a-label-info,
.a-label {
  opacity: 0.7;
  cursor: pointer;
  transition: color, opacity 0.2s ease-in;
  &:hover {
    opacity: 1;
  }
}
.a-label {
  color: $mainColor;
  &:hover {
    color: $mainColor !important;
  }
}
.a-label-danger {
  color: $dangerColor;
  &:hover {
    color: $dangerColor !important;
  }
}
.a-label-info {
  color: $infoColor;
  &:hover {
    color: $infoColor !important;
  }
}

.a-label-warn {
  color: $warningColor;
  &:hover {
    color: $warningColor !important;
  }
}

.vertical-align-mid {
  vertical-align: middle !important;
}

.vertical-align-top {
  vertical-align: top !important;
}

.vertical-align-bot {
  vertical-align: bottom !important;
}

.bg-white {
  background-color: #fff;
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #495060;
  background: rgba(241, 242, 245, 1);
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

.main-font-color {
  color: $mainColor !important;
}

.primary-font-color {
  color: $primaryColor !important;
}

.success-font-color {
  color: $successColor !important;
}

.info-font-color {
  color: $infoColor !important;
}

.disable-font-color {
  color: #eee !important;

  &:hover {
    color: #eee !important;
  }
}

.warning-font-color {
  color: $warningColor !important;
}

.danger-font-color {
  color: $dangerColor !important;
}


.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-l {
  justify-content: flex-start;
}

.flex-r {
  justify-content: flex-end;
}

.flex-c {
  // flex-wrap      : wrap;
  justify-content: space-between;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.clearfix:after {
  content: '';
  /*加一段内容*/
  display: block;
  /*让生成的元素以块级元素显示，占满剩余空间*/
  height: 0;
  /*避免生成的内容破坏原有布局高度*/
  clear: both;
  /*清除浮动*/
  visibility: hidden;
  /*让生成的内容不可见*/
}

.iconfont {
  vertical-align: middle;
}

.unselect-txt {
  user-select: none;
}

// ._v-container,
.select-txt {
  user-select: text !important;
}

textarea,
input,
label {
  display: inline-block;
  vertical-align: middle;
  color: #495060; // #939393;
  font-size: 14px;
}
.value-cls,
.val-cls {
  color: #939393;
}

input,
textarea {
  outline: none;
  border: none;
  padding: 0;
  resize: none;
}

input[disabled],
textarea[disabled] {
  background: #f5f7fa;
}

textarea::placeholder,
input::placeholder {
  color: #ddd;
}

//不换行，溢出部分变为省略号
.no-wrap {
  /*这就是省略号喽*/
  text-overflow: ellipsis;
  overflow: hidden;
  /*设置不断行*/
  white-space: nowrap;
}

.no-border {
  border: none !important;
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  vertical-align: middle;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.fonticon1 {
  display: inline-block;

  &:before {
    @extend .icon;
  }
}

.hide {
  display: none;
}

.show1 {
  display: block;
}

.show2 {
  display: inline-block;
}


.mask-shadow {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.3);

  .mask-box {
    margin-top: 2.13rem;
    background: #fff;
  }
}

.space-line {
  width: 100%;
  height: 60px;
}

.btn-group-box {
  width: 100%;

  .btn-list {
    margin: 0 auto;

    .isActive {
      color: $mainColor;
      border-color: $mainColor;
    }
  }
}

.title-l-line {
  &:before {
    position: relative;
    z-index: 4;
    content: '';
    padding-right: 6px;
    border-left: 3px solid $mainColor;
  }
}

.title-l-circle {
  &:before {
    position: relative;
    z-index: 4;
    content: '';
    padding-right: 6px;
    border-left: 3px solid $mainColor;
  }
}

.cursor-default {
  cursor: default;
}

.cursor-pointer {
  cursor: pointer;
}

// cursor-notAllowed: 禁用样式，js会根据该属性，对统一绑定事件的元素进行禁止执行
.cursor-notAllowed {
  cursor: no-drop !important;
}

.info-line {
  padding-top: 10px;
  font-size: 14px;
  .line {
    display: inline-block;
    margin-right: 20px;
    line-height: 20px;
    .label {
      position: relative;
      padding-left: 12px;
      color: #a3a3a3;
      &:before {
        position: absolute;
        top: 5px;
        left: 0;
        content: '';
        $circleWH: 6px;
        width: $circleWH;
        height: $circleWH;
        background: #d3d6d1;
        border-radius: 50%;
      }
    }
    .val {
      color: #333;
    }
  }
}

.info-line1 {
  &:first-child {
    .label {
      padding-left: 0;
      &:before {
        display: none;
      }
    }
  }
  .label:before {
    position: absolute;
    top: 5px;
    left: 0;
    content: '';
    $circleWH: 6px;
    width: $circleWH;
    height: $circleWH;
    background: #d3d6d1;
    border-radius: 50%;
  }
}

